'''
''' Override the ModifyRedirectURL() to customize the URL
'''
Public Overrides Function ModifyRedirectUrl(ByVal redirectUrl As String, ByVal redirectArgument As String, ByVal bEncrypt As Boolean) As String
' If redirect URL does NOT contain paramter(s), for example, if redirect URL is equal to "../Products/AddProducts.aspx" then URL should look like this:
redirectUrl = redirectUrl + "?Total=" + Me.${Grand Total Field Control}.Text
' If the URL already contains paramter(s) for example, if redirect URL is equal to "../Products/EditProducts.aspx?Orders=1" then, your redirectURL should look like this:
' redirectUrl = redirectUrl + "&Total=" + Me.${Grand Total Field Control}.Text
' Return MyBase.ModifyRedirectUrl
Return MyBase.ModifyRedirectUrl(redirectUrl, redirectArgument, bEncrypt)
End Function
|